package com.mingqijia.gassafety.webserver.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author zhangfei
 * @version 1.0.0
 * @ClassName DeviceSolenoidRequest.java
 * @Description TODO
 * @createTime 2023年08月21日
 */
@Data
public class DeviceSolenoidRequest {

    @ApiModelProperty(value = "电磁阀id")
    private Integer solenoidId;


    @ApiModelProperty(value = "设备号imei")
    @NotEmpty(message = "imei不能为空")
    private String imei;

    @ApiModelProperty(value = "操作类型:0关联 1解除关联")
    @NotNull(message = "操作类型不能为空")
    private Integer optType;
}